package bancosys.tec.exception;

import java.io.Serializable;
import java.util.Locale;

/**
 * Interface for objects that hold a localized message.
 * 
 * @author lundberg
 */
public interface LocalizedMessageHolder extends Serializable {

    /**
     * Returns the message on the system's default language
     * 
     * @return message
     */
    String getMessage();

    /**
     * Returns the message on the given locale.
     * 
     * @param locale locale
     * @return message
     */
    String getMessage(Locale locale);
}
